<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>Be Caution</title>
  <link rel="stylesheet" href="/public/css/edit_add_bk.css">
</head>

<body>
  <form action="/edit" method="POST">
    <input type="hidden" name="id" value="{{ arr.id }}">
    <div class="bk_wd" onselectstart="return false;">
      <div class="bk_wd_cont">
        <p>名称</p><input type="text" class="bk_name" name="name" value="{{ arr.name }}"><br>
      </div>
      <div class="bk_wd_cont">
        <p>网址</p><input type="text" class="bk_url" value="{{ arr.netaddr }}" name="netaddr"><br>
      </div>
      <div class="bk_wd_cont">
        <p>图片链接</p><input type="text" class="bk_img" name="picsrc" value="{{ arr.picsrc }}"><br>
      </div>
      <div class="bk_wd_cont">
        <p>类别</p>
        <select class="bk_category" name="type">
          <option value="1" {{ select[0] }}>阅读</option>
          <option value="2" {{ select[1] }}>娱乐</option>
          <option value="3" {{ select[2] }}>研究</option>
          <option value="4" {{ select[3] }}>资源</option>
        </select>
      </div>
      <div class="bk_wd_cont">
        <input type="submit" value="保存" class="bk_keep">
        <input type="button" value="放弃修改" class="bk_discard">
      </div>
  </form>
  <script src="/public/js/addbk.js"></script>
</body>

</html>